GetPage()

Returns the page contents that have been previously added by the AddContent method. The contents are returned in the format specified by the current device.

In Sage CRM version 7.2b and later, all ASP pages must use the AddContent() and GetPage() methods to build the HTML for the page. This is required to ensure the correct rendering of the page structure and links, including the left-hand main menu, horizontal tabs, and top content.

Parameters

TabGroupName. Optional. Specifies the tab group name that includes the tabs to be passed to the method. In this case, the method shows the passed tabs instead of the current default tabs.

Examples

<!-- #include file = "sagecrm.js"-->
<%
var Comp;
var block;
Comp = CRM.CreateRecord('company');
Comp.item('comp_Name') = 'My company';
Comp.SaveChanges();
block = CRM.GetBlock("companygrid");
CRM.AddContent(block.Execute(''));
Response.Write(CRM.GetPage());
%>

Creates a new Company record.